<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <h1>App</h1>
    <p>this p tag</p>
    <div>this divs</div>
    <script>
      console.log(document.body);
      console.log(document.body.childNodes);
      console.log(document.body.childNodes[1]); // h1
      console.log(document.body.childNodes[3]); // p
    </script>
  </body>
</html>
